handle

abstract override fun handle(payload: T, context: ClientPlayNetworkContext)

Handles a payload sent from the server

Author

fzzyhmstrs

Since

0.4.1

Parameters

payload

the CustomPayload for handling

context

ClientPlayNetworkContext a wrapper around platform context, used for getting various useful info and performing actions like replying to the payload